import request from '@/utils/request'

/* 列表分页*/
export function shipment_page(data) {
  return request({
    url: '/sale/shipment/page',
    method: 'post',
    data: data
  })
}

/* 新增*/
export function shipment_save(data) {
  return request({
    url: '/sale/shipment/save',
    method: 'post',
    data: data
  })
}

/* 修改*/
export function shipment_update(data) {
  return request({
    url: '/sale/shipment/update',
    method: 'post',
    data: data
  })
}

/* 根据id查询*/
export function shipment_detail(data) {
  return request({
    url: '/sale/shipment/' + data,
    method: 'post'
  })
}

/* 根据订单id查询*/
export function shipment_order_id(data) {
  return request({
    url: '/sale/shipment/order-id/' + data,
    method: 'post'
  })
}

/* 删除*/
export function shipment_delete(data) {
  return request({
    url: '/sale/shipment/delete',
    method: 'post',
    data: data
  })
}

/* 查询送货方式的数量*/
export function shipment_type_count(data) {
  return request({
    url: '/sale/shipment/shipment-type-count',
    method: 'post',
    data: data
  })
}
